package com.monitor.display_platform.core.common;

import java.util.Optional;

public class Tuple5<A,B,C,D,E> extends Tuple {

    private A a;
    private B b;
    private C c;
    private D d;
    private E e;

    public Tuple5(A a, B b, C c, D d, E e){
        this.a = a;
        this.b = b;
        this.c = c;
        this.d = d;
        this.e = e;
    }

    public <A> Optional _1() {
        return Optional.ofNullable(a);
    }


    public <B> Optional _2() {
        return Optional.ofNullable(b);
    }


    public <C> Optional _3() {
        return Optional.ofNullable(c);
    }


    public <D> Optional _4() {
        return Optional.ofNullable(d);
    }


    public <E> Optional _5() {
        return Optional.ofNullable(e);
    }
}
